/* 现代化柔和配色方案 */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --success: #10b981;
    --success-hover: #059669;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --warning: #f59e0b;        /* 新增黄色变量 */
    --warning-hover: #d97706;  /* 新增黄色悬停变量 */
}

/* 基础样式 */
@layer base {

    /* 背景颜色 */
    .bg-gray-50 {
        background-color: var(--background);
    }

    .bg-white {
        background-color: var(--surface);
    }

    .bg-red-500 {
        background-color: var(--danger);
    }
    .bg-blue-100{
        background-color: #67a3f3;
    }
    .bg-blue-200{
        background-color: #579bf5;
    }
    .bg-blue-300{
        background-color: #4d8af0;
    }
    .bg-blue-400{
        background-color: #3c7af2;
    }
    .bg-blue-500{
        background-color: #2268f5
    }
    .bg-blue-600{
        background-color: #1d5af7;
    }
    .bg-blue-700{
        background-color: #1a4af9;
    }
    .bg-blue-800{
        background-color: #153efb;
    }

    .bg-green-500 {
        background-color: var(--success);
    }
    .bg-green-500:hover {
        background-color: var(--success-hover);
    }

    .bg-yellow-50 {
        background-color: #FFFBEB;
    }
    .bg-yellow-500 {
        background-color: var(--warning);
    }
    .bg-yellow-500:hover {
        background-color:  var(--warning-hover);
    }

    .bg-green-50 {
        background-color: #ECFDF5;
    }

    .bg-gray-50{
        background-color: #F9FAFB;
    }
    .bg-gray-100{
        background-color: #F3F4F6;
    }
    .bg-gray-200{
        background-color: #E5E7EB;
    }
    .bg-gray-300{
        background-color: #D1D5DB;
    }
    .bg-gray-400{
        background-color: #9CA3AF;
    }
    .bg-gray-500{
        background-color: #6B7280;
    }
    .bg-gray-600{
        background-color: #4B5563;
    }
    .bg-gray-700{
        background-color: #374151;
    }
    .bg-gray-800{
        background-color: #1F2937;
    }

    /* 文本颜色 */
    .text-gray-600 {
        color: var(--text-secondary);
    }

    .text-gray-700 {
        color: var(--text-primary);
    }

    .text-gray-800 {
        color: var(--text-primary);
    }

    .text-white {
        color: var(--surface);
    }

    .text-yellow-800 {
        color: #92400E;
    }

    .text-green-800 {
        color: #065F46;
    }

    /* 边框颜色 */
    .border {
        border: 1px solid var(--border);
    }

    .border-gray-300 {
        border-color: var(--border);
    }

    .border-yellow-200 {
        border-color: #FEF3C7;
    }

    .border-green-200 {
        border-color: #A7F3D0;
    }

    /* 鼠标悬停效果 */
    .hover\:bg-red-600:hover {
        background-color: var(--danger-hover);
    }

    .hover\:bg-blue-600:hover {
        background-color: var(--primary-hover);
    }

    .hover\:bg-green-600:hover {
        background-color: var(--success-hover);
    }

    button {
    background-color: white;
}
}

/* 布局工具类 */
@layer utilities {

    /* Spacing */
    .p-2 {
        padding: 0.5rem;
    }

    .p-3 {
        padding: 0.75rem;
    }

    .p-4 {
        padding: 1rem;
    }

    .p-6 {
        padding: 1.5rem;
    }

    .px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .px-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-1 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .py-2 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Margin */
    .m-0 {
        margin: 0;
    }

    .mt-2 {
        margin-top: 0.5rem;
    }

    .mt-3 {
        margin-top: 0.75rem;
    }

    .mt-4 {
        margin-top: 1rem;
    }

    .mb-2 {
        margin-bottom: 0.5rem;
    }

    .mb-4 {
        margin-bottom: 1rem;
    }

    .mx-auto {
        margin-left: auto;
        margin-right: auto;
    }

    .mb-3 {
        margin-bottom: 12px;
    }

    /* Display & Flex */
    .flex {
        display: flex;
    }

    .hidden {
        display: none;
    }

    .flex-1 {
        flex: 1 1 0%;
    }

    .space-x-2>*+* {
        margin-left: 0.5rem;
    }

    .space-y-2>*+* {
        margin-top: 0.5rem;
    }

    .space-y-3>*+* {
        margin-top: 0.75rem;
    }

    .space-y-2>*+* {
        margin-top: 8px;
    }

    .space-y-2 {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Typography */
    .text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .font-medium {
        font-weight: 500;
    }

    .font-bold {
        font-weight: 700;
    }

    .font-semibold {
        font-weight: 600;
    }

    .text-gray-500 {
        color: var(--text-secondary);
    }

    /* Border & Shadow */
    .rounded {
        border-radius: 0.25rem;
    }

    .rounded-md {
        border-radius: 0.375rem;
    }

    .rounded-lg {
        border-radius: 0.5rem;
    }

    .shadow {
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }

    .shadow-sm {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }

    .shadow-lg {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    /* Width & Height */
    .w-full {
        width: 100%;
    }

    .max-w-2xl {
        max-width: 42rem;
    }

    .max-h-\[300px\] {
        max-height: 300px;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    .max-h-\[300px\]::-webkit-scrollbar {
        width: 4px;
    }

    .max-h-\[300px\]::-webkit-scrollbar-track {
        background: transparent;
    }

    .max-h-\[300px\]::-webkit-scrollbar-thumb {
        background-color: var(--border);
        border-radius: 4px;
    }

    .overflow-y-auto {
        overflow-y: auto;
    }

    /* Other */
    .overflow-y-auto {
        overflow-y: auto;
    }

    .break-all {
        word-break: break-all;
    }
}

/* 动画 */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 输入框样式现代化 */
input {
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--background);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 动画 */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

/* 组件样式 */
.status {
    color: white;
    padding: 1.25rem;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

.status h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.95;
}

.status p {
    margin: 0.75rem 0 0 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* 按钮样式现代化 */
button {
    padding: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    border: none !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
}

button:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

button:active {
    transform: translateY(0);
}

button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    /* transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease; */
}

button:active:after {
    width: 200px;
    height: 200px;
}

/* 卡片样式 */
.url-item {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.url-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.url-item.disabled {
    opacity: 0.8;  /* 稍微提高透明度,让黄色更明显 */
    background-color: rgba(245, 158, 11, 0.1); /* 添加淡黄色背景 */
}

.url-item.disabled input {
    background-color: #fffbeb; /* 修改为淡黄色背景 */
    color: #92400e;  /* 修改为深黄色文字 */
}

/* 状态徽章 */
#currentStatus {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    /* background: rgba(255, 255, 255, 0.15); */
}

#currentStatus.enabled {
    background-color: rgba(3, 125, 18, 0.9);  /* 保持启用状态为绿色 */
    color: #ecfdf5;
}

#currentStatus.disabled {
    background-color: rgba(245, 158, 11, 0.9); /* 修改为黄色 */
    color: #fffbeb;
}

/* 表单编辑区域样式 */
.form-data {
    background: var(--background);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1rem;
}

.form-field {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-field:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* 动画 */
.transition-all {
    transition: all 0.2s ease;
}

/* 保存成功提示 */
#status {
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* 基础布局 */
.main-content {
    padding: 16px;
}

/* 状态栏 */
.status {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    margin: 0;
}

.status h3 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.status p {
    margin: 8px 0 0 0;
    font-size: 14px;
}

/* 按钮组 */
.action-buttons {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    transform: translateY(-1px);
}

.action-button.primary {
    background: var(--primary);
}

.action-button.primary:hover {
    background: var(--primary-hover);
}

.action-button.danger {
    background: var(--danger);
}

.action-button.danger:hover {
    background: var(--danger-hover);
}

/* 列表样式 */
#savedData {
    margin-top: 12px;
}

#savedData>div {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#savedData>div:last-child {
    margin-bottom: 0;
}

/* 状态徽章 */
#currentStatus {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
}

#currentStatus.enabled {
    background: rgba(16, 185, 129, 0.2);
    color: #ecfdf5;
}

#currentStatus.disabled {
    background: rgba(244, 63, 94, 0.2);
    color: #fff1f2;
}

/* URL 项目样式 */
.url-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.url-item.disabled {
    opacity: 0.6;
}

.url-item.disabled input {
    background-color: #f3f4f6;
    color: #6b7280;
}

.url-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    word-break: break-all;
}

.url-buttons {
    display: flex;
    gap: 8px;
}

.url-button {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 编辑表单样式 */
.form-data {
    background: var(--background);
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.form-field {
    background: white;
    border-radius: 4px;
    padding: 8px;
    margin: 4px 0;
}

.px-6 {
    padding-left: 1.5rem;
    /* 24px */
    padding-right: 1.5rem;
    /* 24px */
}

.py-3 {
    padding-top: 0.75rem;
    /* 12px */
    padding-bottom: 0.75rem;
    /* 12px */
}

.py-4 {

    padding-top: 1rem;
    /* 16px */
    padding-bottom: 1rem;
    /* 16px */
}

.py-2 {
    padding-top: 0.5rem;
    /* 8px */
    padding-bottom: 0.5rem;
    /* 8px */
}

.py-1 {
    padding-top: 0.25rem;
    /* 4px */
    padding-bottom: 0.25rem;
    /* 4px */
}

.px-4 {
    padding-left: 1rem;
    /* 16px */
    padding-right: 1rem;
    /* 16px */
}

.px-3 {
    padding-left: 0.75rem;
    /* 12px */
    padding-right: 0.75rem;
    /* 12px */
}

.px-2 {
    padding-left: 0.5rem;
    /* 8px */
    padding-right: 0.5rem;
    /* 8px */
}

.px-1 {
    padding-left: 0.25rem;
    /* 4px */
    padding-right: 0.25rem;
    /* 4px */
}

.px-0 {
    padding-left: 0;
    /* 0px */
    padding-right: 0;
    /* 0px */
}

.p-0 {
    padding: 0;
    /* 0px */
}

.p-1 {
    padding: 0.25rem;
    /* 4px */
}

.p-2 {
    padding: 0.5rem;
    /* 8px */
}

.p-3 {
    padding: 0.75rem;
    /* 12px */
}

.p-4 {
    padding: 1rem;
    /* 16px */
}

.p-5 {
    padding: 1.25rem;
    /* 20px */
}

.p-6 {
    padding: 1.5rem;
    /* 24px */
}

.p-7 {
    padding: 1.75rem;
    /* 28px */
}

.p-8 {
    padding: 2rem;
    /* 32px */
}

.p-9 {
    padding: 2.25rem;
    /* 36px */
}

.p-10 {
    padding: 2.5rem;
    /* 40px */
}

.m-0 {
    margin: 0;
    /* 0px */
}
.m-1 {
    margin: 0.25rem;
    /* 4px */
}
.m-2 {
    margin: 0.5rem;
    /* 8px */
}
.m-3 {
    margin: 0.75rem;
    /* 12px */
}
.m-4 {
    margin: 1rem;
    /* 16px */
}
.m-5 {
    margin: 1.25rem;
    /* 20px */
}
.m-6 {
    margin: 1.5rem;
    /* 24px */
}
.m-7 {
    margin: 1.75rem;
    /* 28px */
}
.m-8 {
    
    margin: 2rem;
    /* 32px */
}
.m-9 {
    margin: 2.25rem;
    /* 36px */
}
.m-10 {
    margin: 2.5rem;
    /* 40px */
}
.m-y {
    margin-top: 0.5rem;
    /* 8px */
    margin-bottom: 0.5rem;
    /* 8px */
}
.m-x {
    margin-left: 0.5rem;
    /* 8px */
    margin-right: 0.5rem;
    /* 8px */
}
.m-t {
    margin-top: 0.5rem;
    /* 8px */
}
.m-b {
    margin-bottom: 0.5rem;
    /* 8px */
}
.m-l {
    margin-left: 0.5rem;
    /* 8px */
}
.m-r {
    margin-right: 0.5rem;
    /* 8px */
}
.m-auto {
    margin: auto;
    /* 0px */
}
.mt-0 {
    margin-top: 0;
    /* 0px */
}
.mt-1 {
    margin-top: 0.25rem;
    /* 4px */
}
.mt-2 {
    margin-top: 0.5rem;
    /* 8px */
}
.mt-3 {
    margin-top: 0.75rem;
    /* 12px */
}
.mt-4 {
    
        margin-top: 1rem;
        /* 16px */
}
.mt-5 {
    margin-top: 1.25rem;
    /* 20px */
}
.mt-6 {
    margin-top: 1.5rem;
    /* 24px */
}
.mt-7 {
    margin-top: 1.75rem;
    /* 28px */
}
.mt-8 {
    margin-top: 2rem;
    /* 32px */
}
.mt-9 {
    margin-top: 2.25rem;
    /* 36px */
}
.mt-10 {
    margin-top: 2.5rem;
    /* 40px */
}
.mb-0 {
    
        margin-bottom: 0;
        /* 0px */
}
.mb-1 {
    margin-bottom: 0.25rem;
    /* 4px */
}
.mb-2 {
    margin-bottom: 0.5rem;
    /* 8px */
}
.mb-3 {
    margin-bottom: 0.75rem;
    /* 12px */
}
.mb-4 {
    
        margin-bottom: 1rem;
        /* 16px */
}
.mb-5 {
    margin-bottom: 1.25rem;
    /* 20px */
}
.mb-6 {
    margin-bottom: 1.5rem;
    /* 24px */
}
.mb-7 {
    
    margin-bottom: 1.75rem;
    /* 28px */
}
.mb-8 {
    margin-bottom: 2rem;
    /* 32px */
}
.mb-9 {
    margin-bottom: 2.25rem;
}
.mb-10 {
    margin-bottom: 2.5rem;
    /* 40px */
}
.ml-0 {
    margin-left: 0;
    /* 0px */
}
.ml-1 {
    margin-left: 0.25rem;
    /* 4px */
}
.ml-2 {
    margin-left: 0.5rem;
    /* 8px */
}
.ml-3 {
    margin-left: 0.75rem;
    /* 12px */
}
.ml-4 {
    margin-left: 1rem;
    /* 16px */
}
.ml-5 {
    margin-left: 1.25rem;
    /* 20px */
}
.ml-6 {
    
        margin-left: 1.5rem;
        /* 24px */
}
.ml-7 {
    margin-left: 1.75rem;
    /* 28px */
}
.ml-8 {
    margin-left: 2rem;
    /* 32px */
}
.ml-9 {
    margin-left: 2.25rem;
    /* 36px */
}
.ml-10 {
    
        margin-left: 2.5rem;
        /* 40px */
}
.bg-green-600 {
    background-color: #16a34a;
}
.bg-gray-600 {
    background-color: #4b5563;
}

.button-container {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.primary-button {
    width: 100%;
    padding: 8px 16px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.primary-button:hover {
    background-color: #4338ca;
}

.primary-button:active {
    background-color: #3730a3;
}

.primary-button .icon {
    font-size: 16px;
}

.warning-button {
    width: 100%;
    padding: 8px 16px;
    background-color: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.warning-button:hover {
    background-color: #d97706;
}

.warning-button:active {
    background-color: #b45309;
}

.danger-button {
    width: 100%;
    padding: 8px 16px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.danger-button:hover {
    background-color: #dc2626;
}

.danger-button:active {
    background-color: #b91c1c;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.grid-button {
    width: 100%;
    padding: 8px 12px;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-height: 40px;
    background: var(--surface);
}

.grid-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.grid-button.primary-button {
    background-color: #4f46e5;
}

.grid-button.primary-button:hover {
    background-color: #4338ca;
}

.grid-button.warning-button {
    background-color: #f59e0b;
}

.grid-button.warning-button:hover {
    background-color: #d97706;
}

.grid-button.warning-button.enabled {
    background-color: #10b981;
}

.grid-button.warning-button.enabled:hover {
    background-color: #059669;
}

.grid-button.danger-button {
    background-color: #ef4444;
}

.grid-button.danger-button:hover {
    background-color: #dc2626;
}

/* 刷新按钮样式 */
#refreshData {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    background: transparent;
    margin-top: 12px; 
}

#refreshData:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

#refreshData svg {
    width: 18px;
    height: 18px;
}

/* 更新工具提示样式 */
[title] {
    position: relative;
}

[title]:hover::after {
    display: none;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification.hidden {
    opacity: 0;
    transform: translate(-50%, -100%);
}

.notification.success {
    background-color: #10b981;
}

.notification.warning {
    background-color: #f59e0b;
}

.notification.error {
    background-color: #ef4444;
}

.notification.info {
    background-color: #3b82f6;
}

.field-item {
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.field-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.field-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.field-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.form-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.saved-form {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.saved-form:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 预览面板动画 */
.preview-panel {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.preview-panel pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.expand-icon{
    transform: rotate(90deg);
}